From: Colin Walters Date: Thu, 11 Aug 2011 14:26:14 +0000 (-0400) Subject: appDisplay: Fix activation of search results X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7951 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=44b475e746d175d87161f2b3b32ee75fe2b24c7a;p=gnome-shell.git appDisplay: Fix activation of search results The id parameter changed to an app. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 291e3d63b..a4a958765 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -333,7 +333,7 @@ AppSearchProvider.prototype = { return this._appSys.subsearch(previousResults, terms); }, - activateResult: function(id, params) { + activateResult: function(app, params) { params = Params.parse(params, { workspace: -1, timestamp: 0 }); @@ -341,7 +341,6 @@ AppSearchProvider.prototype = { let modifiers = event ? Shell.get_event_state(event) : 0; let openNewWindow = modifiers & Clutter.ModifierType.CONTROL_MASK; - let app = this._appSys.lookup_app(id); if (openNewWindow) app.open_new_window(workspace); else